export const MyNew = function(context) {
    if (typeof context !== 'function') {
        throw new TypeError('context must be a function')
    }
    let obj = {}
    obj.__proto__ = context.prototype
    let res = context.apply(obj, [...arguments].slice(1))
    return typeof res === 'object' ? res : obj
}